package com.seek.util;

import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Component;

import com.seek.common.handler.SpringContextHolder;

/**
 * 线程帮助类
 * 
 * <ul>
 * <li>
 * <b>修改历史：</b><br/>
 * <p>
 * [2015-10-22下午3:41:50]涂小炼<br/>
 * 新建
 * </p>
 * </li>
 * </ul>
 */
@Component
public class TheadHelper {
	private ThreadPoolTaskExecutor taskExecutor;
	TheadHelper() {
		taskExecutor = SpringContextHolder.getBean("taskExecutor");
	}
	/**
	 * 获得线程池执行实例
	 * @author 涂小炼
	 * @creationDate. 2015-10-22 下午3:42:32 
	 * @return 执行实例
	 */
	public ThreadPoolTaskExecutor getTaskExecutor() {
		return taskExecutor;
	}
}
